package C7_4_InineClass;

/**
 *
 * 将类内联化
 *
 * 重构前
 */
public class Person {

    private String _name;
    private TelephoneNumber _officeTelephone = new TelephoneNumber();

    public String getName(){
        return _name;
    }

    public String getTelePhoneNumber(){
        return _officeTelephone.getTelePhoneNumber();
    }

    TelephoneNumber getOfficeTelephone(){
        return _officeTelephone;
    }

}
